﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RWGLDealWithForm.aspx.cs" Inherits="WXYW.RWGLDealWithForm" %>
<%@ Register Namespace="WXYW.Controls" TagPrefix="WXYWControl" Assembly="WXYW.Common" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    任务管理 - 处理任务
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" OnClick="backLinkButton_Click">返回</asp:LinkButton>
        &nbsp;&nbsp;
        <img src="image/topic.gif" alt="" />
        <asp:LinkButton ID="taskFileLnkBtn" runat="server" 
            onclick="taskFileLnkBtn_Click">附件</asp:LinkButton>
        &nbsp;&nbsp;
        <img src="image/operateicon/check.gif" alt="" />
        <asp:LinkButton ID="okLinkButton" runat="server" OnClick="okLinkButton_Click">保存</asp:LinkButton>
        &nbsp;&nbsp;
        <img src="image/operateicon/right.gif" alt="" />
        <asp:LinkButton ID="finishButton" runat="server" OnClick="finishForm_Click">结单</asp:LinkButton>
        &nbsp;&nbsp;
    </div>
    <table width="100%" style="line-height: 25px;">
        <tr>
            <td>
                <b>任务主题:</b>
            </td>
            <td>
                <asp:Label ID="subjectLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <b>任务类型:</b>
            </td>
            <td>
                <asp:Label ID="taskTypeLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>创建日期:</b>
            </td>
            <td>
                <asp:Label ID="createdateLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <b>预定完成日期:</b>
            </td>
            <td>
                <asp:Label ID="shouldLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>创建人员:</b>
            </td>
            <td>
                <asp:Label ID="createrLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                <b>执行人员:</b>
            </td>
            <td>
                <asp:Label ID="assigneeLabel" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>完成日期:</b>
            </td>
            <td>
                <asp:TextBox ID="completeTextBox1" runat="server"></asp:TextBox>
                <cc1:CalendarExtender ID="CalendarExtender1" TargetControlID="completeTextBox1" Format="yyyy-MM-dd"
                    runat="server">
                </cc1:CalendarExtender>
            </td>
           <td>
                <b>问题类型:</b>
            </td>
            <td>
                <asp:Label ID="taskQuestionType" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td><b>当前状态:</b></td>
            <td>
                <asp:RadioButtonList ID="StatusRadioButtonList" runat="server" RepeatDirection="Horizontal" ForeColor="Blue">
                    <asp:ListItem Text="处理中" Value="处理中" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="观察中" Value="观察中" ></asp:ListItem>
                    <asp:ListItem Text="升级处理中" Value="升级处理中"></asp:ListItem>
                </asp:RadioButtonList>
            </td>            
             <td>
                <b>问题原因类型:</b><span style="color:Red">*</span>
            </td>
            <td>
                <asp:DropDownList ID="resultTypeDDL" runat="server">
                    <asp:ListItem Text="客户问题" Value="客户问题"></asp:ListItem>
                    <asp:ListItem Text="产品问题" Value="产品问题"></asp:ListItem>
                    <asp:ListItem Text="服务问题" Value="服务问题"></asp:ListItem>
                    <asp:ListItem Text="政策问题" Value="政策问题"></asp:ListItem>
                    <asp:ListItem Text="其他" Value="其他"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <b>任务内容:</b>
            </td>
            <td colspan="2">
                <b>处理结果:</b>
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top">
                <asp:TextBox ID="taskContentTxtBox" runat="server" Width="98%" Height="200px" ReadOnly="true" TextMode="MultiLine" Wrap="true">
                </asp:TextBox>
            </td>
            <td colspan="2" valign="top">
                <asp:TextBox ID="resultTextBox" runat="server" Width="98%" TextMode="MultiLine" Wrap="true" Height="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="color:Red">重要提示：此任务完成并想结单时，请填写处理结果后，点击结单；当记录任务受理进度时，请点击保存按钮，你的记录将被保存，任务状态不变。</td>
        </tr>
    </table>
    
    <asp:HiddenField ID="taskFileHF" runat="server" />
    <cc1:ModalPopupExtender ID="TaskFileModalPopupExtender" PopupControlID="TaskFilePanel" BackgroundCssClass="modalBackground"
        TargetControlID="taskFileHF" runat="server" Drag="true" PopupDragHandleControlID="TaskFileDragBar"
        CancelControlID="closeTaskFileBtn" OnLoad="ModalPopupExtender1_Load">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="TaskFilePanel" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" runat="server" Width="500px">
        <!-- Header -->
        <div class="box-header" id="TaskFileDragBar">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2>
                任务附件</h2>
        </div>
        <div class="functionPanel">
            <table width="100%">
                <tr>
                    <td>
                        <WXYWControl:CustomGridView ID="TaskFileGridView" CssClass="tableList" BorderColor="#888888"
                            BorderWidth="1px" runat="server" AutoGenerateColumns="False" Width="100%" OnRowDataBound="TaskFileGridView_RowDataBound"
                            OnMustAddARow="GridView_MustAddARow">
                            <Columns>
                                <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="IDLbl" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="文件名" DataField="FileName" />
                                <asp:TemplateField HeaderText="创建日期">
                                    <ItemTemplate>
                                        <%#Convert.ToDateTime(Eval("CreateDate")).ToString("yyyy-MM-dd")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                    <img src="image/operateicon/docview.gif" alt="" />
                                    <asp:HyperLink ID="ViewFileHyperLink" runat="server" Target="_blank">查看</asp:HyperLink>
                                    <%--<img src="image/operateicon/docview.gif" alt="" />
                                    <asp:LinkButton ID="viewLnBtn" OnClick="viewLnBtn_click" CommandArgument='<%#Eval("ID") %>'
                                        runat="server">删除</asp:LinkButton>--%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
                        </WXYWControl:CustomGridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:FileUpload ID="TaskFileFileUpload" runat="server" />
                        <asp:Button ID="uploadTaskFileBtn" runat="server" Text="上传" 
                            onclick="uploadTaskFileBtn_Click" />
                    </td>
                </tr>
                <tr style="height: 25px" align="center">
                    <td>
                        <img src="image/operateicon/docdelete.gif" alt="" />
                        <asp:LinkButton ID="closeTaskFileBtn" runat="server">关闭</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
</asp:Content>
